package com.cq.hd.system.api.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
public class ContentSaveDto implements Serializable {

    @NotNull(message = "内容端口不能为空")
    @ApiModelProperty(value = "内容端口(1-火动学堂，2-商户学堂)")
    private Integer contentPort;

    @NotNull(message = "分类不能为空")
    @ApiModelProperty(value = "分类id")
    private Long categoryId;

    @NotNull(message = "内容类型不能为空")
    @ApiModelProperty(value = "内容类型：0-富文本，1-URL链接")
    private Integer contentType;

    @NotBlank(message = "标题不能为空")
    @ApiModelProperty(value = "标题")
    private String title;

    @NotBlank(message = "详情不能为空")
    @ApiModelProperty(value = "详情")
    private String details;

    @NotNull(message = "排序不能为空")
    @ApiModelProperty(value = "排序")
    private Integer contentSort;

}
